import Icon from "ol/style/Icon";
import Style from "ol/style/Style";

export function defIconStyle(icon: string): Style {
  return new Style({
    image: new Icon({
      src: icon,
      crossOrigin: "anonymous",
      anchor: [0.5, 0.8],
      scale: 0.1,
    }),
  });
}

